//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package study.IO.字节流.OutputStream;

import Class.Student;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class ObjectOutputStream_demo {
    public ObjectOutputStream_demo() {
    }

    public static void main(String[] args) throws IOException {
        Student st = new Student("张三", 22);
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("JavaTest\\Files\\a.txt"));
        oos.writeObject(st);
        oos.close();
    }
}
